Sort Method

Sorts the elements of a one-dimensional array in ascending order.

Syntax



array.Sort


Notes

The Sort method works with Integer, String, Single, and Double arrays only. It accepts only one-dimensional arrays.


Examples

This example sorts the aNames array.

aNames.Sort

See Also

Dim statement; Array, Join, Split, Ubound functions; Append, IndexOf, Insert, Pop, Redim, Remove, Shuffle, Sortwith methods; ParamArray keyword.